@import './base.css';

#app {
  margin: 0 auto;
  font-weight: normal;
  min-height: 100vh;
  background: var(--color-background);
}

/* 全局动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--color-pubg-primary); }
  50% { box-shadow: 0 0 20px var(--color-pubg-primary), 0 0 30px rgba(240, 103, 62, 0.5); }
}

/* 链接样式 */
a {
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.pubg-link {
  color: var(--color-pubg-primary);
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.pubg-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-pubg-primary);
  transition: width 0.3s ease;
}

.pubg-link:hover {
  background-color: rgba(240, 103, 62, 0.1);
  transform: translateY(-1px);
}

.pubg-link:hover::after {
  width: 100%;
}

/* 通用卡片样式 */
.pubg-card {
  background: var(--color-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
  animation: fadeIn 0.6s ease-out;
}

.pubg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--color-pubg-primary-light);
}

/* 按钮样式 */
.pubg-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-pubg-primary), var(--color-pubg-primary-dark));
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(240, 103, 62, 0.3);
  position: relative;
  overflow: hidden;
}

.pubg-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.pubg-button:hover::before {
  left: 100%;
}

.pubg-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 103, 62, 0.4);
}

.pubg-button:active {
  transform: translateY(0);
}

.pubg-button-secondary {
  background: transparent;
  color: var(--color-pubg-primary);
  border: 2px solid var(--color-pubg-primary);
  box-shadow: none;
}

.pubg-button-secondary:hover {
  background: var(--color-pubg-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(240, 103, 62, 0.3);
}

/* 标题样式 */
.pubg-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-pubg-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  animation: slideInLeft 0.5s ease-out;
}

.pubg-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-pubg-primary), transparent);
  border-radius: 2px;
}

.pubg-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

/* 内容区域样式 */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 3rem;
  position: relative;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

/* 卡片网格布局 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* 响应式调整 */
@media (min-width: 1024px) {
  #app {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .pubg-title {
    font-size: 2rem;
  }
  
  .pubg-subtitle {
    font-size: 1.25rem;
  }
  
  .pubg-card {
    padding: 1.25rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
